package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.AdvertisementMapper;
import com.hcb.micro.dto.Advertisement;
import com.hcb.micro.service.IAdvertisementService;

@Service("AdvertisementService")
public class AdvertisementServiceImpl implements IAdvertisementService {

	@Autowired
	AdvertisementMapper advertisementMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return advertisementMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Advertisement record) {
		return advertisementMapper.insert(record);
	}

	@Override
	public int insertSelective(Advertisement record) {
		return advertisementMapper.insertSelective(record);
	}

	@Override
	public Advertisement selectByPrimaryKey(Integer id) {
		return advertisementMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Advertisement record) {
		return advertisementMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Advertisement record) {
		return advertisementMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Advertisement> selectByPara(Map<String, Object> para) {
		return advertisementMapper.selectByPara(para);
	}

}
